package com.hu.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hu.common.annotation.Excel;
import com.hu.common.core.domain.BaseEntity;

/**
 * 库存损耗对象 stock_loss
 *
 * @author hu
 * @date 2025-01-30
 */
public class StockLoss extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 损耗ID */
    private Long lossId;

    /** SKU编码 */
    @Excel(name = "SKU编码")
    private String sku;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** SKU属性 */
    @Excel(name = "SKU属性")
    private String skuAttr;

    /** SKU货号（非数据库字段，从product_info关联查询） */
    @Excel(name = "SKU货号")
    private String skuCode;

    /** 损耗数量 */
    @Excel(name = "损耗数量")
    private Integer lossQuantity;

    /** 损耗原因 */
    @Excel(name = "损耗原因")
    private String lossReason;

    /** 损耗日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "损耗日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lossDate;

    /** 所属店铺ID */
    private Long shopId;

    /** 所属店铺名称 */
    @Excel(name = "所属店铺")
    private String shopName;

    /** 删除标志 */
    private String delFlag;

    public void setLossId(Long lossId) {
        this.lossId = lossId;
    }

    public Long getLossId() {
        return lossId;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getSku() {
        return sku;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setSkuAttr(String skuAttr) {
        this.skuAttr = skuAttr;
    }

    public String getSkuAttr() {
        return skuAttr;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public void setLossQuantity(Integer lossQuantity) {
        this.lossQuantity = lossQuantity;
    }

    public Integer getLossQuantity() {
        return lossQuantity;
    }

    public void setLossReason(String lossReason) {
        this.lossReason = lossReason;
    }

    public String getLossReason() {
        return lossReason;
    }

    public void setLossDate(Date lossDate) {
        this.lossDate = lossDate;
    }

    public Date getLossDate() {
        return lossDate;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("lossId", getLossId())
                .append("sku", getSku())
                .append("productName", getProductName())
                .append("skuAttr", getSkuAttr())
                .append("skuCode", getSkuCode())
                .append("lossQuantity", getLossQuantity())
                .append("lossReason", getLossReason())
                .append("lossDate", getLossDate())
                .append("remark", getRemark())
                .append("shopId", getShopId())
                .append("shopName", getShopName())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}

